
package com.feib.soeasy.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import com.feib.soeasy.model.Group;
import com.feib.soeasy.model.Payment;
import com.feib.soeasy.pagination.PaginatedList;


/**
 * @title (#)Soez5003Service.java<br>
 * @description <br>
 * @author Jimmy Liu<br>
 * @version 1.0.0 2010/11/25
 * @copyright Far Eastern International Bank Copyright (c) 2010<br>
 * @2011/3/14 create by Jimmy Liu<br>
 */
@Transactional(readOnly = true)
public interface Soez5006Service {

    /**
     * @param group TODO
     * @param group
     * @param qryType
     * @param dateFrom
     * @param dateTo
     */
    public String doExportStatisticsXls(Group group, String[] channels, Date[] dateFroms, Date[] dateTos);

    
    
    
    /**
     * @param group
     * @param qryType
     * @param dateFrom
     * @param dateTo
     * @return
     */
    //public String doExportStatisticsHtml(Group group, Integer qryType, Date dateFrom, Date dateTo);

    //2011.12 by Leo
	public List queryStatisticsByGroup(Group group, Date qryDateFrom, Date qryDateTo);

	public String doExportStatisticsHtml(Group group, String[] channels , Date[] dateFroms, Date[] dateTos);


	public List queryPaymentByChannelCommission(Group group, String channel,
			String commissionCode, Date qryDateFrom, Date qryDateTo);

	public String doExportStatisticsByGroupXls(Group group, Date qryDateFrom,
			Date qryDateTo);

	public String doAjaxQueryCommissionCodeXls(Group group, String channel,
			String commissionCode, Date qryDateFrom, Date qryDateTo);

    
	public PaginatedList<Payment> queryGroupFeedbackLogByChannelCommission(
			Group queryGroup, String channel, String commissionCode, Date adayS, Date adayEo,PaginatedList<Map<String, Object>> paginationConfig) ;
	
    
	/*取得通路明細  */
	public PaginatedList<Payment> queryPaymentByChannel(
			Group group, String channels[],
			Date dateFroms[], Date dateTos[],PaginatedList<Map<String, Object>> paginationConfig) ;
	
	public String doExportChannelStatisticsXls(Group group, String[] channels, Date[] dateFroms, Date[] dateTos);
    
}
